﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LibUpdate
{
    /// <summary>
    /// 更新状态委托
    /// </summary>
    public delegate void ActionEventHandler(ActionEventArgs e);

    /// <summary>
    /// 更新状态通知信息
    /// </summary>
    public class ActionEventArgs
    {
        private int _FileIndex;
        private FileActionState _ActionState;
        /// <summary>
        /// 更新文件索引id
        /// </summary>
        public int FileIndex
        {
            get
            {
                return _FileIndex;
            }
            set
            {
                _FileIndex = value;
            }
        }

        /// <summary>
        /// 更新状态
        /// </summary>
        public FileActionState ActionState
        {
            get
            {
                return _ActionState;
            }
            set
            {
                _ActionState = value;
            }
        }
    }
}
